#pragma once
#include "GameControl.h"
#include "MyImage.h"

class CGameButton : public CGameControl
{
public:
	CGameButton(void);
	~CGameButton(void);

	void LoadResFromDir(const string& rkDir);
	void LoadResFromFile(const string& rkFile);
	void LoadResFormImage(const CMyImage& rkImage);
	virtual bool OnLeftBtnDown(int iX,int iY);
	virtual bool OnLeftBtnUp(int iX,int iY);
	virtual void OnDraw();

protected:
	CMyImage m_kImageNormal;
	CMyImage m_kImageFocus;
	CMyImage m_kImageClick;
	CMyImage m_kImageDisable;
};
